projects
/
cargo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fd5d7a9
)
Export full package version as CARGO_PKG_VERSION
author
Wesley Wiser
<wwiser@gmail.com>
Fri, 26 Dec 2014 21:38:25 +0000
(16:38 -0500)
committer
Wesley Wiser
<wwiser@gmail.com>
Fri, 26 Dec 2014 21:38:25 +0000
(16:38 -0500)
Fixes #1047
src/cargo/ops/cargo_rustc/compilation.rs
patch
|
blob
|
history
diff --git
a/src/cargo/ops/cargo_rustc/compilation.rs
b/src/cargo/ops/cargo_rustc/compilation.rs
index 073298670ee538b825cbe9ea7062b7463786252f..1d6688f9a69ee06a5a5e7935c35d20ffc1e1ada4 100644
(file)
--- a/
src/cargo/ops/cargo_rustc/compilation.rs
+++ b/
src/cargo/ops/cargo_rustc/compilation.rs
@@
-84,6
+84,8
@@
impl Compilation {
Some(pkg.get_version().patch.to_string()))
.env("CARGO_PKG_VERSION_PRE",
pre_version_component(pkg.get_version()))
+ .env("CARGO_PKG_VERSION",
+ Some(pkg.get_version().to_string()))
.cwd(pkg.get_root()))
}
}